Optimal. Leaf size=452 \[ -\frac {\tan ^{-1}\left (\frac {1-\frac {2 \sqrt [3]{2} \left (\sqrt [3]{a}+\sqrt [3]{b} x\right )}{\sqrt [3]{a+b x^3}}}{\sqrt {3}}\right )}{2^{2/3} \sqrt {3} a^{4/3} \sqrt [3]{b}}-\frac {\tan ^{-1}\left (\frac {1+\frac {\sqrt [3]{2} \left (\sqrt [3]{a}+\sqrt [3]{b} x\right )}{\sqrt [3]{a+b x^3}}}{\sqrt {3}}\right )}{2\ 2^{2/3} \sqrt {3} a^{4/3} \sqrt [3]{b}}+\frac {x \left (1+\frac {b x^3}{a}\right )^{2/3} \, _2F_1\left (\frac {1}{3},\frac {2}{3};\frac {4}{3};-\frac {b x^3}{a}\right )}{2 a \left (a+b x^3\right )^{2/3}}-\frac {\log \left (2^{2/3}-\frac {\sqrt [3]{a}+\sqrt [3]{b} x}{\sqrt [3]{a+b x^3}}\right )}{6\ 2^{2/3} a^{4/3} \sqrt [3]{b}}+\frac {\log \left (1+\frac {2^{2/3} \left (\sqrt [3]{a}+\sqrt [3]{b} x\right )^2}{\left (a+b x^3\right )^{2/3}}-\frac {\sqrt [3]{2} \left (\sqrt [3]{a}+\sqrt [3]{b} x\right )}{\sqrt [3]{a+b x^3}}\right )}{6\ 2^{2/3} a^{4/3} \sqrt [3]{b}}-\frac {\log \left (1+\frac {\sqrt [3]{2} \left (\sqrt [3]{a}+\sqrt [3]{b} x\right )}{\sqrt [3]{a+b x^3}}\right )}{3\ 2^{2/3} a^{4/3} \sqrt [3]{b}}+\frac {\log \left (2 \sqrt [3]{2}+\frac {\left (\sqrt [3]{a}+\sqrt [3]{b} x\right )^2}{\left (a+b x^3\right )^{2/3}}+\frac {2^{2/3} \left (\sqrt [3]{a}+\sqrt [3]{b} x\right )}{\sqrt [3]{a+b x^3}}\right )}{12\ 2^{2/3} a^{4/3} \sqrt [3]{b}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.20, antiderivative size = 452, normalized size of antiderivative = 1.00, number of steps
used = 17, number of rules used = 11, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.500, Rules used = {421, 252,
251, 420, 493, 298, 31, 648, 631, 210, 642} \begin {gather*} -\frac {\text {ArcTan}\left (\frac {1-\frac {2 \sqrt [3]{2} \left (\sqrt [3]{a}+\sqrt [3]{b} x\right )}{\sqrt [3]{a+b x^3}}}{\sqrt {3}}\right )}{2^{2/3} \sqrt {3} a^{4/3} \sqrt [3]{b}}-\frac {\text {ArcTan}\left (\frac {\frac {\sqrt [3]{2} \left (\sqrt [3]{a}+\sqrt [3]{b} x\right )}{\sqrt [3]{a+b x^3}}+1}{\sqrt {3}}\right )}{2\ 2^{2/3} \sqrt {3} a^{4/3} \sqrt [3]{b}}-\frac {\log \left (2^{2/3}-\frac {\sqrt [3]{a}+\sqrt [3]{b} x}{\sqrt [3]{a+b x^3}}\right )}{6\ 2^{2/3} a^{4/3} \sqrt [3]{b}}+\frac {\log \left (\frac {2^{2/3} \left (\sqrt [3]{a}+\sqrt [3]{b} x\right )^2}{\left (a+b x^3\right )^{2/3}}-\frac {\sqrt [3]{2} \left (\sqrt [3]{a}+\sqrt [3]{b} x\right )}{\sqrt [3]{a+b x^3}}+1\right )}{6\ 2^{2/3} a^{4/3} \sqrt [3]{b}}-\frac {\log \left (\frac {\sqrt [3]{2} \left (\sqrt [3]{a}+\sqrt [3]{b} x\right )}{\sqrt [3]{a+b x^3}}+1\right )}{3\ 2^{2/3} a^{4/3} \sqrt [3]{b}}+\frac {\log \left (\frac {\left (\sqrt [3]{a}+\sqrt [3]{b} x\right )^2}{\left (a+b x^3\right )^{2/3}}+\frac {2^{2/3} \left (\sqrt [3]{a}+\sqrt [3]{b} x\right )}{\sqrt [3]{a+b x^3}}+2 \sqrt [3]{2}\right )}{12\ 2^{2/3} a^{4/3} \sqrt [3]{b}}+\frac {x \left (\frac {b x^3}{a}+1\right )^{2/3} \, _2F_1\left (\frac {1}{3},\frac {2}{3};\frac {4}{3};-\frac {b x^3}{a}\right )}{2 a \left (a+b x^3\right )^{2/3}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 31
Rule 210
Rule 251
Rule 252
Rule 298
Rule 420
Rule 421
Rule 493
Rule 631
Rule 642
Rule 648
Rubi steps
\begin {align*} \int \frac {1}{\left (a-b x^3\right ) \left (a+b x^3\right )^{2/3}} \, dx &=\frac {\left (1+\frac {b x^3}{a}\right )^{2/3} \int \frac {1}{\left (a-b x^3\right ) \left (1+\frac {b x^3}{a}\right )^{2/3}} \, dx}{\left (a+b x^3\right )^{2/3}}\\ &=\frac {x \left (1+\frac {b x^3}{a}\right )^{2/3} F_1\left (\frac {1}{3};1,\frac {2}{3};\frac {4}{3};\frac {b x^3}{a},-\frac {b x^3}{a}\right )}{a \left (a+b x^3\right )^{2/3}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains higher order function than in optimal. Order 6 vs. order 5 in
optimal.
time = 10.05, size = 153, normalized size = 0.34 \begin {gather*} \frac {4 a x F_1\left (\frac {1}{3};\frac {2}{3},1;\frac {4}{3};-\frac {b x^3}{a},\frac {b x^3}{a}\right )}{\left (a-b x^3\right ) \left (a+b x^3\right )^{2/3} \left (4 a F_1\left (\frac {1}{3};\frac {2}{3},1;\frac {4}{3};-\frac {b x^3}{a},\frac {b x^3}{a}\right )+b x^3 \left (3 F_1\left (\frac {4}{3};\frac {2}{3},2;\frac {7}{3};-\frac {b x^3}{a},\frac {b x^3}{a}\right )-2 F_1\left (\frac {4}{3};\frac {5}{3},1;\frac {7}{3};-\frac {b x^3}{a},\frac {b x^3}{a}\right )\right )\right )} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.06, size = 0, normalized size = 0.00 \[\int \frac {1}{\left (-b \,x^{3}+a \right ) \left (b \,x^{3}+a \right )^{\frac {2}{3}}}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} - \int \frac {1}{- a \left (a + b x^{3}\right )^{\frac {2}{3}} + b x^{3} \left (a + b x^{3}\right )^{\frac {2}{3}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {1}{{\left (b\,x^3+a\right )}^{2/3}\,\left (a-b\,x^3\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________